When an exception is logged and rethrown, the upstream code may not be aware that the exception has already been logged. As a result, the same
exception gets logged multiple times, making it difficult to identify the root cause of the issue. This can be particularly problematic in
multi-threaded applications where messages from other threads can be interwoven with the repeated log entries.
Exceptions
This rule will not generate issues if, within the catch block, one of the following conditions are met:
- The logs generated within the catch block do not contain any references to the exception being caught.
- The exception being thrown from the catch block is not the same exception that is being caught.